tsNetSetTimeouts
Type
command
Summary
Adjust the timeout values used by tsNet external.
Syntax
tsNetSetTimeouts <pDnsCacheTimeout>, <pRequestTimeoutMS>, <pConnectTimeoutMS>, <pAcceptTimeoutMS>, <pLowSpeedTime>, <pLowSpeedLimit>
Description
Adjust the timeout values used by tsNet external.
Parameters
Name | Type | Description |
---|---|---|
pDnsCacheTimeout | tsNet caches DNS responses for a default time of 60 seconds. The value for this parameter (in seconds) will override this default. | |
pRequestTimeoutMS | By default, tsNet does not limit the length of time a request can take. This parameter will set a maximum number of milliseconds the entire request can take. Set this to 0 to not enforce a limit. | |
pConnectTimeoutMS | This parameter sets the length of time in milliseconds that the external will wait for the initial connection to the server to be established. The default is 300000 milliseconds. | |
pAcceptTimeoutMS | For active FTP connections, this parameter sets the length of time in milliseconds that the external will wait for the FTP server to connect back to tsNet when establishing the data stream. The default is 60000 milliseconds. | |
pLowSpeedTime | This parameter defines the time period in seconds that is used to calculate whether or not the transfer has fallen below the low speed limit set by pLowSpeedLimit. Set this to 0 to disable this feature. | |
pLowSpeedLimit | If the speed of transfer falls below this number of bytes per second (over the time period specified by pLowSpeedLimit) then the connection will be aborted. Set this to 0 to disable this feature. |
Examples
tsNetSetTimeouts 30, 0, 300000, 60000, 30, 1000
Related
library: tsNet
Compatibility and Support
Introduced
LiveCode 8.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile